package com.lifa.controller;

import com.lifa.dao.DpXianzhiDao;
import com.lifa.entity.DpXianzhi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/dPxianzhi")
@Scope("prototype")
public class DpXianzhiController {
    @Autowired
    private DpXianzhiDao dpXianzhiDao;
    /**
     * 123
     */
    @RequestMapping("/queryAll")
    @ResponseBody
    public List<DpXianzhi> queryAll(){
        return dpXianzhiDao.queryAll();
    }
}
